#ifndef _THUNDER_UTILS
#define _THUNDER_UTILS

#include <stdlib.h>
#include <stdio.h>
#include <CL/cl.h>

void random_init(float * data, int length);
void inc_init(float * data, int length);
char * file2string(const char* filename, const char* preamble, size_t* final_length);
//void ocl_set_args(cl_kernel kernel, int n, ...);
cl_kernel ocl_kernel_build(cl_program program, cl_device_id device, char * kernel_name);
cl_mem ocl_create_buffer(cl_context context, cl_mem_flags flags, size_t size, void * host_data);
void ocl_check_error(int err, char * info = "");

#endif